<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<h1>循环结构</h1>
			<h3 v-for="(item,index) in lunch">{{item}}----{{index}}</h3>
			<p v-for="user in list">
				{{user.id}}--{{user.name}}
			</p>
		</div>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			const app = new Vue({
				el:"#app",
				data:{
					lunch:['青椒炒辣椒','大米饭盖饭','西红柿炒番茄','土豆炖马铃薯'],
					list:[{id:1,name:"张三"},
							{id:2,name:"李四"},
							{id:3,name:"王五"},]
				}, 
				methods:{
					
				}
			})
		</script>
	</body>
</html>
